package com.ruoyi.project.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("阶段字典配置表")
@TableName("project_participan")
public class ProjectParticipan extends Field {

    private static final long serialVersionUID = 1L;

    /** 表id */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("阶段编码")
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 项目id */
    private String projectNo;

    /** 关联的阶段id */
    @Excel(name = "关联的阶段id")
    private Long phaseId;

    /** 参与人id */
    @Excel(name = "参与人id")
    private Long participantId;

    /** 参与人名称 */
    @Excel(name = "参与人名称")
    private String participanName;

    @TableField(exist = false)
    private List<String> projectNos;

    /** 参与人岗位id */
    @Excel(name = "参与人岗位id")
    private Long postId;

    /** 参与人岗位名称 */
    @Excel(name = "参与人岗位名称")
    private String postName;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;


    /** 阶段名称 */
    @Excel(name = "阶段名称")
    private String phaseName;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;


    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;




}
